package com.dy.placeOrder.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dy.placeOrder.Comments;
import com.dy.placeOrder.service.CommentsService;
import com.dy.placeOrder.mapper.CommentsMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 001
 * @description 针对表【comments(评价表)】的数据库操作Service实现
 * @createDate 2024-12-05 19:38:46
 */
@Service
public class CommentsServiceImpl extends ServiceImpl<CommentsMapper, Comments>
        implements CommentsService {
    @Autowired
    private CommentsMapper commentsMapper;

    @Override
    public List<Comments> getCommentsByGid(Integer gid) {
        return commentsMapper.getCommentsByGid(gid);
    }
}




